<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>综合案例2</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .box{
            width: 360px;
            height: 198px;
            background-color:  pink;
            /* 块级盒子水平居中 */
            margin: 100px auto;
        }
        .box-head{
            width: 100%;
            height: 34px;
            background-color: #eeeeee;
            border: 1px solid #dbdee1;
            border: left 0; /* 左边框不显示 */
        }
        .box-head a{
            /* 转换为块级元素 */
            display: block;
            width: 50px;
            height: 34px;
            background-color: #fff;
            text-align: center;
            line-height: 34px;
            text-decoration: none;
            color: #333;
            /* 上边框 */
            border-top: 3px solid #ff8400;
            /* 有边框 */
            border-right: 1px solid #dbdee1;
            /* 防止子级挡住父级，margin是负值，盒子往上走 */
            margin-top: -1px;
        }
        li{
            list-style: none;
        }
        .box-body{
            background-color: #fff;
        }
        .box-body li{
            line-height: 26px;
            background: url() no-repeat left center;
            padding-left: 15px;
        }
        .box-body li a{
            font-style: 14px;
            color: #333;
            text-decoration: none;
            background: url() no-repeat left center;
            padding-left: 20px;
        }
        .box-body li a:hover{
            color: #ff8400;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box-head">
          <a href="#">新闻</a>
        </div>
        <ul class="box-body">
            <li>
                <a href="#">新闻标题1</a>
            </li>
            <li>
                <a href="#">新闻标题2</a>
            </li>
            <li>
                <a href="#">新闻标题3</a>
            </li>
            <li>
                <a href="#">新闻标题4</a>
            </li>
            <li>
                <a href="#">新闻标题5</a>
            </li>
            <li>
                <a href="#">新闻标题6</a>
            </li>
        </ul>
    </div>
</body>
</html>